﻿using RockBus.Configuration;
using RockBus.DataContracts;

namespace RockBus.Routing.SendPorts
{
    public class PersistenceSendPortConfiguration : IPersistenceSendPortConfiguration
    {
        public PersistenceSendPortConfiguration()
        {
            this.RequestEndpoint = ServiceBusConfigurationSection.Instance.PersistenceConfiguration.RequestEndpoint.CreateEndpointInfo();
            this.ReplyEndpoint = ServiceBusConfigurationSection.Instance.PersistenceConfiguration.ResponseEndpoint.CreateEndpointInfo();
        }

        public EndpointInfo RequestEndpoint { get; set; }

        public EndpointInfo ReplyEndpoint { get; set; }
    }
}